package cn.tedu.myvrd.mapper;

import cn.tedu.myvrd.entity.Category;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Mapper
public interface CategoryMapper {
    @Select("select id,name from Category")
    List<Category> list();
}
